module.exports = Behavior({
    data: {
        balance_text: "余额",
        integral_text: "积分"
    },
    attached: function() {
        var t = this;
        wx.getStorage({
            key: "yz_basic_info",
            success: function(a) {
                t.setData({
                    balance_text: a.data.balance || "余额",
                    integral_text: a.data.point || "积分"
                }), t.initCustomField();
            }
        });
    },
    methods: {
        initCustomField: function() {},
        gotoPage: function(t) {
            var a = t.currentTarget.dataset.name, e = t.currentTarget.dataset, n = "/packageF/storeManagement/".concat(a, "/").concat(a, "?");
            for (var c in e) "name" != c && (n += "".concat(c, "=").concat(e[c], "&"));
            wx.navigateTo({
                url: n
            });
        }
    }
});